<template>
  <el-select v-model="result[options.key]" v-bind="$props"
             :multiple="options.multiple"
             :visible-change="change"
             :change="save">
    <el-option v-for="item in options.options"
               :key="item.value"
               :label="item.label"
               :value="item.value"></el-option>
  </el-select>
</template>

<script>
  export default{
    name: 'AppRemoteDlg',
    componentName: 'AppRemoteDlg',
    props: ['result', 'options', 'action', 'save'],
    methods: {
      change () {
        this.options.loading = true
        this.action()
      }
    },
    mounted () {
      console.log(this.result, this.options)
    }
  }
</script>
